package com.zyd.shiro.persistence.dao;

import com.zyd.shiro.persistence.beans.GoodsImage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.zyd.shiro.persistence.beans.GoodsRoyalty;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * 数据访问接口
 *
 * @author Administrator
 */
public interface MallGoodsRoyaltyDao extends JpaRepository<GoodsRoyalty, Integer>, JpaSpecificationExecutor<GoodsRoyalty> {
    @Query(value = "select * from mall_goods_royalty  where goods_id = ?1", nativeQuery = true)
    GoodsRoyalty findByGoods_id(Integer goodsId);
}
